﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPages/Core.Master"
    CodeBehind="AssociationDeposites.aspx.cs" Inherits="Pap.Web.Modules.Loan.Views.AssociationDeposites"
    meta:resourcekey="PageResource1" %>

<asp:Content runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <ext:Store runat="server" ID="storeCommitteeDeposites" AutoLoad="True" IDMode="Legacy"
        meta:resourcekey="storeCommitteesBalancesResource1" SerializationMode="Simple">
        <Reader>
            <ext:JsonReader>
                <Fields>
                    <ext:RecordField Name="CommitteeBankAccountDepositID" />
                    <ext:RecordField Name="DepositeDate" Type="Date" />
                    <ext:RecordField Name="ProjectName" />
                    <ext:RecordField Name="DepositeAmount" />
                </Fields>
            </ext:JsonReader>
        </Reader>
        <SortInfo Direction="ASC"></SortInfo>
    </ext:Store>
    <ext:FitLayout runat="server" IDMode="Legacy" meta:resourcekey="FitLayoutResource1">
        <ext:Panel runat="server">
            <Body>
                <ext:RowLayout runat="server">
                    <ext:LayoutRow>
                        <ext:FormPanel runat="server" BodyStyle="padding:5px;" ButtonAlign="Right" AutoScroll="true">
                            <Body>
                                <ext:FormLayout runat="server" ElementStyle="" ItemCls="" LabelWidth="150">
                                    <ext:Anchor>
                                        <ext:TextField runat="server" ID="txtAssociationName" FieldLabel="AssociationName"
                                            Width="300" Disabled="True" AllowBlank="False" meta:resourcekey="txtAssociationNameResource1" />
                                    </ext:Anchor>
                                    <ext:Anchor>
                                        <ext:TextField runat="server" FieldLabel="<%$Resources:AssociationDeposites %>" ID="txtAssociationDeposites"
                                            Disabled="true" AllowBlank="false">
                                        </ext:TextField>
                                    </ext:Anchor>
                                </ext:FormLayout>
                            </Body>
                        </ext:FormPanel>
                    </ext:LayoutRow>
                    <ext:LayoutRow RowHeight="1">
                        <ext:GridPanel runat="server" ID="gridCommitteeDeposites" StoreID="storeCommitteeDeposites"
                            Title="Associations Blances" meta:resourcekey="gridCommitteesBlancesResource1"
                            Frame="true" AutoExpandColumn="ProjectName" StripeRows="true">
                            <ColumnModel>
                                <Columns>
                                    <ext:Column DataIndex="0" Width="30">
                                        <Commands>
                                            <ext:ImageCommand Icon="Magnifier" CommandName="ViewDetails">
                                                <ToolTip Text="<%$Resources:TipViewDetails %>" />
                                            </ext:ImageCommand>
                                        </Commands>
                                    </ext:Column>
                                    <ext:Column DataIndex="ProjectName" Header="<%$Resources:ProjectName %>" Sortable="True">
                                    </ext:Column>
                                    <ext:Column DataIndex="DepositeDate" Header="<%$Resources:DepostiteDate %>" Sortable="True">
                                        <Renderer Fn="Ext.util.Format.dateRenderer('d/m/Y')" />
                                    </ext:Column>
                                    <ext:Column DataIndex="DepositeAmount" Header="<%$Resources:DepositAmount %>" Sortable="True" />
                                </Columns>
                            </ColumnModel>
                            <AjaxEvents>
                                <Command OnEvent="gridCommitteeDeposites_Command">
                                    <ExtraParams>
                                        <ext:Parameter Name="CommandName" Value="command" Mode="Raw" Encode="False" />
                                        <ext:Parameter Name="CommitteeBankAccountDepositID" Value="record.data.CommitteeBankAccountDepositID"
                                            Mode="Raw" Encode="False" />
                                    </ExtraParams>
                                    <EventMask ShowMask="true" />
                                </Command>
                            </AjaxEvents>
                            <BottomBar>
                                <ext:PagingToolbar ID="pagingBar" runat="server" StoreID="storeCommitteeDeposites"
                                    PageSize="15" DisplayInfo="True" IDMode="Static" meta:resourcekey="pagingBarResource1">
                                    </ext:PagingToolbar>
                            </BottomBar>
                            <TopBar>
                                <ext:Toolbar runat="server">
                                    <Items>
                                        <ext:Button runat="server" Icon="MoneyAdd" Text="New Deposit">
                                            <AjaxEvents>
                                                <Click OnEvent="btnNewDeposit_Click">
                                                    <EventMask ShowMask="true" />
                                                </Click>
                                            </AjaxEvents>
                                        </ext:Button>
                                    </Items>
                                </ext:Toolbar>
                            </TopBar>
                            <SelectionModel>
                                <ext:RowSelectionModel runat="server">
                                </ext:RowSelectionModel>
                            </SelectionModel>
                        </ext:GridPanel>
                    </ext:LayoutRow>
                </ext:RowLayout>
            </Body>
            <BottomBar>
                <ext:StatusBar runat="server">
                    <Items>
                        <ext:Button runat="server" IDMode="Static" ID="btnBack" Text="<%$ Resources:BackButton %>"
                            Icon="ArrowUndo">
                            <AjaxEvents>
                                <Click OnEvent="btnBack_Clicked" />
                            </AjaxEvents>
                        </ext:Button>
                    </Items>
                </ext:StatusBar>
            </BottomBar>
        </ext:Panel>
    </ext:FitLayout>
</asp:Content>
